package com.xinchao.model.dto;

import com.xinchao.annotation.Children;
import com.xinchao.annotation.Id;
import com.xinchao.annotation.ParentId;

import java.util.List;

/**
 * @author dxy
 * @date 2018/7/10 19:01
 */
public class DepartmentTreeDTO {

	/**
	 * 部门ID
	 */
	@Id
	private Long departmentId;
	/**
	 * 上级ID
	 */
	@ParentId
	private Long pid;
	/**
	 * 部门名称
	 */
	private String label;
	/**
	 * 下级部门
	 */
	@Children
	List<DepartmentTreeDTO> children;

	public Long getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public List<DepartmentTreeDTO> getChildren() {
		return children;
	}

	public void setChildren(List<DepartmentTreeDTO> children) {
		this.children = children;
	}
}
